<div class="pageContent">
	<form modelAttribute="user" method="post" action="user/update" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<input type="hidden" value="${user.id}" name="id"/>
			<p>
				<label>登录邮箱：</label>
				<input name="email" value="${user.email}" readOnly="readOnly" type="text" class="required" size="30"/>
			</p>
			<p>
				<label>名称：</label>
				<input name="name" value="${user.name}" class="required" type="text"/>
			</p>
			<p>
				<label>所属部门：</label>
					<#if departments??>
						<select name="department.id">
							<#list departments as department>
								<option value="${department.id}">${department.name}</option>
							</#list>
						</select>
					</#if>
			</p>
			<p>
				<label>账户类型：</label>
				<select name="role" value="${user.role}">
					<option value="1">普通成员</option>
					<option value="0">管理员</option>
				</select>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>